<script type="text/javascript" language="JavaScript" src="<?php echo "/" . $this->base; ?>/public/js/old-jquery.js"></script>

<script>

$(function(){
	$.post('/pedido/list', {cod: <?php echo $this->cod; ?>, menu: <?php echo $this->menu_id; ?>}, function(res)
			{
				$("#imprimirDiv").html(res);

				window.print();

				window.close();
			});
});



</script>

<div id="imprimirDiv"></div>